package com.blog.admin.service;

import java.util.List;
import java.util.Set;

import com.blog.admin.pojo.auth.User;

public interface UserService {
	/***
	 * 获取用户
	 *
	 * @param user
	 * @return
	 */
	User getUser(User user);

	User getUserById(Integer userId);

	/**
	 * 获取用户权限
	 *
	 * @param userId
	 *            userId
	 * @return 用户权限
	 */
	Set<String> findPermissionsByUserId(int userId);

	/**
	 * 查询用户
	 */
	List<User> getUserList(String username);
}
